js shenanigans