bp: fixed js error with custom functions
panorama: sync shadow when pnp image has loaded