Fix syntax issue ; present on Object property + reindent lines

Three of the `serializer` properties had invalid line endings `;` inside of the `Object` these have been removed.

Furthermore the object closing brace and function closing bracket were incorrectly indented.