js solutions to issues