Fixed JSHint issues
Use resolves in routes