Properly handling js_vars_from_server in jasmine tests