Added menu JavaScript for data structure