add npm needed files and source code