Move loading to a seperate script

- Loading code moved to loader.js
- Refomat chat.html a bit to bring it up to date
- Make chat load once scripts are loaded
- Fix shim loader to prevent pieces of old chat remaining
Change some settings in the NetBeans project file