compile js using closure on post-receive