dynamic element appending in custom.js