Corrected javascript syntax for defining object properties

Was breaking IE7