detect js file