updated js frontend