jsAddToView to solve "$ is not defined" problem