Removed bug from js in problem 424