updated js files to process JSON to load main board