Added various todo.jsm features

how do i javascript.  
Some things may not be coded well, but I guess I haven't seen `calc.jsm` yet.
I was under the impression that not adding braces was the intended convention in this codebase. Will change these.