pure js loader