JS file psuedo code updates