Convert Php Array Into Javascript Compiler