Hacking the js together so we can do something useful.