fixed js for flags/helpful