removes non-critical styles and renames main script