updated toggle js

fixes issue #7
added role-based widget restriction

fixes #6
added script checks for js
updated readme