Add javascript directly in wiews