Tried using a more conventional gani? Something that the client is guaranteed to have, like sword.gani or whatever?
Regarding //#SERVERSIDE: There is nothing particularly wrong about the line, as long as it is understood that it functions as a comment rather than a directive.