Consider JavaScript Closure, fix #4