Changed gallery endpoint and moved CSS from JS to actual CSS file.