javascript `reflection` :P  && bugfix