set width of Main container.
rewrite js code and markup. functioning.