Seperated JavaScript into seperate file