Add title tags and remove unused javascript