Issues after Brackets upgrade: updated the code to use new API for opening a file