More framework stuff.
Start of the JS work.