Convert to work in Sublime Text 3

These are the changes I made to get this working with Sublime Text 3.