 
 bg2rgb = (bg) ->
   [ _, r, g, b ] = bg.split /(?:rgb\()|(?:, )|\)/
-  '#' + (hex(parseInt c) for c in [r, g, b]).join ''
+  '#' + (hex parseInt c for c in [r, g, b]).join ''
 
 # use of golden ratio inspired by
 # //martin.ankerl.com/2009/12/09/how-to-create-random-colors-programmatically/

    when 3 then [ P, q, V ]
    when 4 then [ t, P, V ]
    when 5 then [ V, P, q ]
  '#' + (hex(Math.floor 255 * c) for c in [r, g, b]).join ''

rgb2hue = (rgb) ->
  [r, g, b] = ((parseInt rgb[x..x+1], 16) / 255 for x in [1..6] by 2)
  max = Math.max r, g, b
  diff = max - Math.min r, g, b
  unless diff

    url: url
    type: 'popup'
    state: 'normal'
    height: 86
    width: 802
    left: x
    top: y

# don't frighten the user with a blank menu
storage.get (items) ->
