Rename function, use protected
Add javascript listeners only once