js warnings fixed; line endings