Registration js refactor . Added maps