Fixed typo in js interface for java method