game js in separate file