Tweaking plugin js