Changed the way menus are handled. Added JS Engine.