Testing javascript functionality.