Added server code for controldeck.js