added header minimising js & css
added back preventdefault