add retagging function
add identation for javascript