Hi!
Here's a suggestion :
Place the declaration of var at the beginning of the function
function boot_player()
{
var node = 1; // start at first node
var angle[3]; // this should not get declared every time
....
I'll look further.
edit :
I don't think you need the c_move
the get next node (path_getnode) gets you to the next node and so on.