Trim script using @require for jquery