[Code quality] Fixed JSHint issues
[Refactor] Renamed function