refactor active src files to comply with jsHint