Add a new option '-html_head' to add extra data/information between the ...

...<head></head> tags + minor fix on the javascript code