DN: first half, added javascript