remove unnecessary knit:: prefix
use anonymous function for .onLoad again