JavaScript context for Genome2D framework