getting that js under control