more work on nebula form; possible use of require js

but require won't be finished today