Getting Class Id works properly without a php script