[XWALK-DRIVER] refactor javascript dialog manager