add singleton js