js help from ivaylo---touch detect, header collapse behaviour, various other things