prevent loading specific js files in admin section

Hi,

I'm trying to prevent some js files to load in admin context.

I use the code below to do this in "start.php" file of a plugin:

if (!elgg_in_context('admin')) {
            elgg_extend_view("js/elgg", $path, $priority);
}

but it is strangely loaded and I don't know why! Any one knows the reason?

Thanks in advance.