Communication between js and java now works