fix attr js