this simple javascript can output now the type of the path, folder, MooV, Jpeg etc…