simplifying exec
JSHint fixes
small internal refactor