Cleaning up extraneous js object properties