move some file js to libraries