Fix javascript

!valid is fine you don't need the ()