Fixed missing semicolon in Javascript