pure js test