Created the new JS file for more functionality