Added js for part 3