change default loading mode to '0' (standard), added error handling and fixed script insertion for IE and improved it for other newer browsers