Fix JS error with custom dashboard widgets #59