made the js actually work