Replace yepnope with HeadJS.
Add js extension when using asset tag.
Inline head.js.