Switch back to pure js