js files for showing dialog boxes after re-factoring done

Signed-off-by: Bimal Yashodha <kb.yashodha@gmail.com>