Create funcs.js

Functions and all that