wasn't sure whether the same rules were for js as for php