Added the ability to work in subdirectories
Added alert if JavaScript is disabled