Adds change_identity JavaScript event trigger