Object JS

Formatted and bug fix