Added options to enable and disable javascript control of fullscreen mode