intial conversion to js
fixing conversion errors
correct fields in package files