Variable Javascript Input Events In Html