Merge loadCSSFile and loadJavascriptFile into loadAssetFile

Signed-off-by: emanuele <emanuele45@gmail.com>