Correctly check for views.js usage when generating views file for widgets -
fixes #4