tried using almond.js instead of requirejs