Edited main js