I don't think you should do it like this... 

We could have a php file (or whatever) getting the info somewhere instead to be more secure