Mysql Set Array Variable Javascript Download