Fixed a small javascript error