Account view.edit.php

I want to add custom js for account edit page, i want to make some field read only, so 've created a view.edit.php and insert this code:


class AccountsViewEdit extends ViewEdit
{
 	public function __construct()
 	{
 		parent::__construct();
 		$this->useForSubpanel = true;
 		$this->useModuleQuickCreateTemplate = true;
		echo <<<EOHTML
<script>console.log("hello");</script>
EOHTML;
 	}

}

the js works, but i don’t know why the html of the edit page fucks up like this

Someone know why this happens and know how to fix this?
thanks all