Refactoring code editor js
Merge pull request #21 from andmcgregor/js-refactor

Refactoring code editor js