fixed several bugs: failed tests due to renamed css class and wrapped the map resize function in a document ready function.