add support for browserifying coffee files and other refactorings