adding the remaining javascript tests from a few weeks ago