Functions lost on forms when submitting through google chrome browser