add filename option
fix jshint styling