PHP and Javascript Helper for creation of Bootstrap 3 UI elements