changing javascript models generation based on getters instead of fields

Signed-off-by: bessem <bessem@LEADER-PC>