I'm trying to add my own .js to a Magento project, but I can't do it...
I've followed the steps here, but I still can't do it.
I did the following:
- Frontend: Opened page.xml and inside the block: block type="page/html_head" name="head" as="head", I included my .js file: lib/query.js.
- Backend: I modified main.xml like said here, and I added the .js to the block named as head.
But nothing happens. The javascript seems to not be working. Any ideas on why, or any step that I need to follow?
I EDIT THE QUESTION because I found a different problem...:
I did everything as suggested in the Answers. And it didn't work. But I think it's because of the script.
When I go to firebut, I see these mistakes, that I don't know if they were at first:

First mistake is located at head.phtml, when I make the call:
<script type="text/javascript">
$jQuery.noConflict();
</script>
The second and the third one are located at the beginning of my .js files...
Any idea? Maybe solving this, will solve my other issue...