NSString *path = [[NSBundle mainBundle] pathForResource: "test.html" ofType: @""];Objective-C is pretty convoluted sometimes!
[self.webView loadRequest: [NSURLRequest requestWithURL: [NSURL fileURLWithPath: path]]];
Also, you have to make your javascript resources non-executable