javascript for random color & alert favorite