Simplify menu creation

Shift the complete menu to the javascript. Plan is to modularise as much
as possible
Bug Fix

Fix bug that was causing a slow down/error in gallery rendering. Missing
a '26hl' argument.