jshandler added to handle multiple instances on one page