Fix issue when loading JS with WP_DEBUG set to false