Some javascript tests