Connect to MySQL working / Testing javascript