Missing ;  extra ;;   Follow some of the standards oulined by Crowford
He point to a really good use case why to have { on the same line as the if
http://javascript.crockford.com/code.html