Fixed broken drop src container/portlet detection in JavaScript