Return views instead of just require them

Also, I got rid of the 'json' type and made it just return an array.