Default value, js scope fix.