Fixed JS error if 'createlink' is not enabled

There was error when initializing Pen without 'createlink'
Merge pull request #67 from GuriK/patch-1

Fixed JS error if 'createlink' is not enabled