Divided javascript into seperate files