restructured javascript folder for understanding