Fix wrong references to the current position in getters
Build JS