js: curlies in statement state don't pop