Remove unused scripts and styles method