Update functionality.js - added semicolon to var declaration