fix unprotected global call; add map file to bower.json