Please try to create a brand new Mobile Style that is not based on the existing style, and see if the problem persists. Since the VaultWiki Javascript is still trying to run, even after adding the code above, this suggests to me that VaultWiki is unable to find the 'mobile' flag which should be set for the style, or that the vault_general_footer template is modified and the default conditionals in the template have been removed.