Fixed binding of 'open' which was being instantiating the file class again, but should instead reference it via an id.