Prevent menu from going off the page
Missing semicolons and other stuff
tabs to spaces
Merge pull request #668 from ExchangeCore/context-menu-fixes

Context menu positioning fix