Fixed popup bug in map-online

- popup was containing wrong fields and was uncomplete
Fixed a bug in commons.js

- guessCapImgName test for up course was failing