rewrite fasync to livescript