Move js modules to lib folder