fixed bug not allowing php data into js file