Copy prototype from CodePen and convert to Jade