Added javascript to fit requirements for the course