ec: white space fixes

It is advised to use ?w=0 in comparing this commit.
ec: compare strictly against null
ec: define on use
ec: remove semi-colons