added Color utils module

cleaned up Gradient module and widget js