Converted parsing to regex, huge performance improvement.

No longer a prototype class object, rather just a javascript object