clean & document constants.js