Little JS bugfix