improving converting of java values
improve type conversion from js
fixing error
fixing conversion in append()