added r.js and refactored project