Added discount javascript