Removed history.js and encapsulate the java code

I encapsulate the java script in a startup fucntion to ensure that all html code is ready.

Also i delete the history.js.
It brings no real time savings.