updates js and styles