Added coverage to travis and Javascript testing.