refacored code.
moved to scriptinjector and cssinjector