Missing semicolon on function literal