unable to pass variable from js to java