Fix indentation in shared.coffee
Refactor mcds.js