Adding javascript gotchas tests