Fix loading a default marker icon
Fix showing the icon after changing marker category

The code's still structured like the puke of a sperm whale who'd swallowed too much
plastic waste.
Switch to jQuery for eventhandler
whitespace