Fix bug on getCSS and getJavascript