added some pagespeed optimisations