Extention for head.js to use resource loader like require.js