move inline styles and scripts to external location