fix missing semi colon in js