Script for creating responsive navigation