javascript tests updated