Update rb.core.js

Java script fixed for Dialog creation