yes, it's copyrighted by someone as soon as it's created -- displaying a notice and registering just make it easier to collect damages, especially punitive. Note that if someone is paying you to create a website for them, you really should have a signed agreement that the script code itself is not a work "for hire," and that they get only a non-exclusive right to the code, otherwise the copyright could belong to them not you.