fixed javascript interface