JS set up and opt for WP