scan js directory
detect and set js content type