JS: fixing the pos loading on page