Minor fix to broken js