various js tasks