extracted js to file