updates js application