ui: Javascript issues with trailing comma in IE7

Fixes grnet/synnefo#320