Some Javascript updates, initial API testing.