updating javascript end to end to be uptodate with the current interface