added a loading indicator to demo js loads