move js file to a separate package