More esc_js action to prevent errors with translations

As committed on master branch:
- https://github.com/woothemes/woocommerce/commit/38d892b14e26df435e90b2f13f48693d28bc23d4