Added options and jshinted code