Fix bug in Javascript.