Fix loading JavaScript files with CRLF terminators (DOS platforms).