Created FileManager class and ported functionality from GoldenBear.js to FileManager