added javascript functionality for the divButton