Fixed JS

My javascript broke so I reverted to an older version.