Move capture method cb into page.render cb
Update Makefile
Update test_capturejs