Adjust javascript