Put the <script type="text/javascript" src="assets/js/scripts.js"></script>
tag before closing the body </body>
instead of outside it before </html>
.
Exemplifying:
...
<script type="text/javascript" src="assets/js/scripts.js"></script>
<script>
hideElement...
</script>
</body>
</html>
OBS: It is no longer necessary to specify the type
in the LINK
and SCRIPT
tags since you are using HTML5.
Getting:
<script src="assets/js/scripts.js"></script>
The type attribute gives the language of the script or format of the data. If the attribute is present, its value must be a valid MIME type. The charset parameter must not be specified. The default, which is used if the attribute is absent, is "text / javascript".
Documentation: Scripting - W3 Recommendation
OBS:
Also check your .htaccess
. It may be blocking directory access.