JavaScript API amendments