move js to lib directory