Correctly made the parser for javascript files

The parser currently only handles methods and classes.
Fields are coming next!