Fixing form javascript