find free port for phantomjs at runtime
keep using arrow 0.0.77
add error checking
fix lint errors
correct more jslint errors
Merge pull request #1182 from lzhan/yui

keep using arrow 0.0.77 and find free port for phantomjs at runtime