Added proper resource compilation. Remove debug codes.
Added createScriptTag method.