added css and mathjax links to maths gr7 term 1. Added check to script to avoid removing of head elements