total sp now calculated
incomplete javascript upgrade for filtering
this commit will totally break everything