fix for login issue with browser JS; closes #20