finish dynamically load javascript