adding constants
moving main.js to a YUI module