Edition javascript