JSCode shouldn't extend Array. Instead, it uses a property called lines, which is a vanilla array.