Php Echo Array Element Javascript Function