Prepare JS for GM tools