fix broken js from bounty