minor bug fixes (issues #2 and #3)

Bug fixes for issue #2 and #3. 
As for issue #1: trying to use JUA on a PrimeFaces view (or another view without jsf object) now displays an alert box.