fixed bug on loadJs and loadCss