js oop and hqpc