Create small.js

small functions