Convert Php Array Into Javascript Download