add packge.json, ignore node_modules and refactoring
recompile js