javasecipt test code