Fix ordering of tiles in javascript template, add id to fixtures