refactoring and moving to off-line jsx transform