Fixing the JSNI approach.
- Need to refactor the packages later on to match mxgraph swing and gwt
code.
Signed-off-by: Sachin Shekhar R <sachin.r.r@gmail.com>