Some small fixes

The jQuery map prevents a warning message in the console.

Perhaps update to the lastest jQuery?