Correct typo (clas -> class)
Use AngularJS to read filename