unexpected token catch

fixed javascript error