rewrite with labjs
Merge branch 'labjs'