Tried to user RequireJS and failed miserably