Issue #6: required file in scripts

A solution to the issue #6, the test will only search for required file starting by './' or '/' and match with file specified in component.json among script, json, and file.
once you run linter this will throw, you are calling a function above before it is defined. please move this to top of the file. also after you clean up the above the callback hell will disappear and you should be able to inline this logic above
this file should reduce in size dramatically