Rename some javascript functions
Auto change color when user add plot