generalized javascript click
added support for different versions of embed (citizen and current)