More JSCS checking and code refactoring

The move of argv to bin is inspired by jscs. https://github.com/jscs-dev/node-jscs/blob/master/bin/jscs#L16