Fixed a JS issue