Fix a few incredibly stupid Javascript mistakes.