fix register placeholder.js bug