converted js into object literal