PMG - Some refactor on entity variable type Double -> double to work with server js
Fix issue in popuplistener