few small fixes

Basically these solve obvious glaring issues while trying to use phpJS with Eclipse or JS compilers that are more sensitive to the syntax.