fix element access with angular document.ready