Back to js.

Should be everything we need to revert back to javascript.

@copenhas mind overlooking? If you are good with then merge.