smoothstate.js fixes

Of course I forgot to reference the JavaScript file....