Modified plugin java and js. Updated the example.