Refactor position out of aktivitet edit
Clean up position javascript code