fix for resolving input address in javascript