Fixes Javascript Errors

Fixes the Javascript error that prevents enabling/disabling the objects
in the interface.