Little function for normal random in JavaScript