made the js a bit nicer