Initial javascript text separation

The goal is to facilitate transalation