rename $r to $reflectionClass
tweak phpmd hinting
tweak js hinting