Move application js back to head but make it async to prevent blocking