fix js attr
use atom writer class