Do not run javascript in body twice. fixes #231