inline javascript for improved pagespeed