Missing semicolon in javascript