working version (initial) using requirejs