API, javascript stuff. Lots of stuff added, actually