Test js libraries in core

Also minor change to ascii text data handling in assert() of that test (\r\n vs \n difference)