     else if(type == EXTENSION_TYPE_JPEG)
         fileType = EXTENSION_TYPE_JPEG;
     else if(type == EXTENSION_TYPE_HDR)
-        fileType =  EXTENSION_TYPE_HDR;    
+        fileType =  EXTENSION_TYPE_HDR;
     else if(type == EXTENSION_TYPE_BMP)
         fileType = EXTENSION_TYPE_BMP;
     else if(type == EXTENSION_TYPE_TGA)

        return RESOURCE_TYPE_CUBEMAP;
    else if (fileType == JSON_TYPE_SPRITER_DATA)
        return RESOURCE_TYPE_2D_ANIMATION_SET;

    // extension fileTypes
    else if (fileType == EXTENSION_TYPE_TTF)
        return RESOURCE_TYPE_FONT;
    else if (fileType == EXTENSION_TYPE_OTF)

        return RESOURCE_TYPE_CUBEMAP;
    else if (fileType == XML_TYPE_SPRITER_DATA)
        return RESOURCE_TYPE_2D_ANIMATION_SET;
    else if (fileType == XML_TYPE_GENERIC)
        return RESOURCE_TYPE_GENERIC_XML;

    // JSON filetypes
    else if (fileType == JSON_TYPE_SCENE)
        return RESOURCE_TYPE_SCENE;
    else if (fileType == JSON_TYPE_NODE)
