move plugin script from theme to plugin