Corrected javascript object syntax