extract javascript