Fixing some errors in javascript console + the name of the location appears