fixed missing }) in js