removed outdated Javascript API