Switch to checking for single quotes in JS

Matches and encourages WP coding standards.