Changed plugin js to try