Fixed procedure control js