separate the skin/theme loading code into loader.js file.