clean up
use example js from master