Javascript now sets gradient