removing tempfiles and adding a javascript config