Added basic smoothState.js