Repalced curl with require and added handlebar templates