break smooth functions into separate js files