Add smoothState.js