Add fonts directory for .ttf NTA.
Rearrange functions to avoid scoping issue

page.evaluate executes the function in the context of the page rather than the PhantomJS script.

@pbadenski
@robyoung