use js instead of python