A JS implementation of the katas found on laracasts.com (although I know this is not the origin)