refactor move js libraries to lib folder