Modularized & Some fix & improvements

I've split the code in html and js files. I Create the function HTML5Panorama in order to initialize a panorama with some options.