Porting the JS files from the previous version is done. Removed the unnecessary singleton js.