Parses the context from a string of javascript to determine the context for functions, variables and comments based on its code.