Fix source path and JS processing