JS: Call the correct javascript function on heating toggle
Convert heating toggle to REST style
Fix ID parsing for heating

Obviously we need to check the ID against the different modes, and not
the heating object itself.