Fixed #1757

Create a mock panels object to fix codecasting, and ensure that the rest of the jsbin object is still protected