Improved readability of html and ruby files

Improved readability by updating indentations, grouped JS code together
and adding safari browser support to Mac only since it is default browser in Mac OS.