moved some js files to lib dir