Finished Javascript wrapper.