Fixing division by 0 in mathematical data transforms + linting

the mean, stddev and division transforms were susceptible to division by 0, this PR fixes that and since I was there I also applied some fixes proposed by JSHint.

Anyhow, I have no idea how to deploy this :lollipop: 

@jnrbsn @nmonterroso