tidy up index.html by making footer a directive and putting windows8 fix into own js file