some work with the js app