adding a parseData method which currently parses javascript