remove a js error when a variable is not initialised

2 jobs for dev in 3 minutes and 2 seconds (queued for 3 seconds)