add assert for minimal duration
split of javascript content