javascript structure, foundation