javascript tests