Create func.js

basic js file for starter functionality