Added benchmark and fixed few jslint issues.