brought distro js up to speed with working js