Convert Php Array Into Javascript For Beginners