Simplify javascript layer behavior enum STRING