fixing js, making less annoying