1. Write javascript prototypes to mimic the primatives of BASIC where there is no JS equivalent - Arrays spring to mind, JS Arrays are dynamical growing sparse arrays. To support BASIC arrays you will need support redim and redim preserve to resize the array. You may also want to consider a string wrapper type as some implementations of BASIC have mutable strings, JS does not.
2.Write a parser for BASIC that generates an AST (abstract syntax tree).
3. Walk the AST recursively emitting Javascript equivalents (ie fragments of code) of the BASIC constructs.
4. Pass that javascript to eval or load it as an external JS file.
The two languages are fairly similar in broad details. subs and functions both become functions, depending on the dialect of BASIC you are implementing you wont need to implement classes, maybe only types. Probably the most finickity detail will be mapping ON ERROR nonsense across to something more sensible, and perhaps handlign by val and by ref arguments.