split lib and main js files. seems to fix a improper loading in IE10.
added all template