smoothstate.js fixes v2

Derped. Moving smoothfunc.js into the js folder