solution to current issue with mustache- need to use jbuilder to customise json