Completed the JS side.

Made all the stupid boxes work.