add blog javascript closure