Added split code path based on the file extension.

Prevents transformation of non JSX files.
Merge pull request #5 from tillarnold/dev

Added split code path based on the file extension.