Test js libraries in core

Also minor change to ascii text data handling in assert() of that test (\r\n vs \n difference)
Oh, good catch, I hadn't noticed that. I'll update the test to reflect this.