put JS in its own file