Improve fabrik plugin

Use $config for config instead of $shim and simplify code  a little.

Highlight potential logic issues where $config is set and $js is blank -
but not sure I understand enopugh to change this..