reorganize js code in public
package.json & basic node scripts