Asserted that code in a panel executes

When a panel is created any javascript code inside must be executed.