added addscript and addstyle functions