updated rs.js
bring back displayWidget call