PHP compiler to JavaScript