Update scoot.js

objectified for more flexible use of the parts