Fixed: math correction in translateToMaxZoomLevel

Changed Math.pow call to correctly return value.
New: Events.isSubscribedTo

Function to determine whether or not a certain function has already been subscribed to a certain topic.

Previously, the callback function in highlight.js was being reassigned every time highlights were re-generated; this ensures that it will only be called once.