small work

wrap all js in anonymous func