fixed reading of sections, sub sections and javascript sections