removed last commas in object literals as it might cause errors in older browsers