Fix for IE issues with googlenav

Fixes #51

This pull request also does some cleanup.