added more native methods, added a demo in the README and tidy test.html