Add parsing for prototype and object-method declarations

Just added functionality for parsing function names from prototype declarations and object declarations.