Add javascript to conversion