add js to pics and remove js that was not used