Add JavaScript Closure, fix #4