Simple color selection tool written in javascript