building Javascript section