dashboard: Use json encoder for static js config

Signed-off-by: Jesse Stuart <jesse@jessestuart.ca>