split bin file + add command line arguments p,t,h
extract main.js from index + some styles ameliorations