Fixed faulty javascript