Javascript Dynamic loader of javascript code and css