Somehow an extra 'var' was added. Was causing syntax error.