Loading scripts using head.js