move js package to its own file