Fixed google maps API conditional test
Forgot variable replacing in map.js