Issue #24 - fixed JS error