fixed fubar in js