Javascript defined in seperate files