tweaked JS