elseif for .js class fixed