updated js append