lock:update power.coffee and move it to common/js/