Add a method to retrieve the JavaScript declarations