using Head.js client side for code organisation