Update function.js

in functions braces shifted on the next line