add lib with javascript to work with npm