Updated JavaScript

Added a setting to allow the page to be translated when the menu is
displayed. Instead of just having the menu on top of the page, the page
is translated.